package com.cjx.common.service.inner;

import com.cjx.common.model.entity.InterfaceInfo;

/**
 * @author cjx
 * @description
 * @createDate 2024/5/14 13:25
 **/
public interface InterfaceInfoServiceInner {

    /**
     * 根据请求类型和uri获取对应的接口信息
     * @param method
     * @param uri
     * @return
     */
    InterfaceInfo getInterfaceInfoByMethodAndUri(String method, String uri);

    /**
     * 调用一次接口发生的事
     * @param interfaceId
     * @param userId
     * @param reduceScore
     * @return
     */
    boolean invoke(Long interfaceId, Long userId, Long reduceScore);

}
